# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=playerctl
pkgver=2.4.1
pkgrel=0
pkgdesc="MPRIS command-line controller for music players"
options="!check" # Requires unpackaged pytest-asyncio
url="https://github.com/altdesktop/playerctl"
arch="all"
license="LGPL-3.0-or-later"
makedepends="meson glib-dev gobject-introspection-dev"
checkdepends="py3-pytest py3-pytest-timeout"
subpackages="
	$pkgname-dev
	$pkgname-doc
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/altdesktop/playerctl/archive/v$pkgver.tar.gz"

build() {
	abuild-meson \
		-Dgtk-doc=false \
		-Dintrospection=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="
2d84f657b07c948cd6990d9e79c4eb6e83f97c387ac53c2322fc0adbeb853950fa935332233329e7555db7d157f3ced6498cc102edaffd78849ca1f7d4c49bdc  playerctl-2.4.1.tar.gz
"
